// 引用网络请求中间件
import request from './../utils/request';

 // 获取充值余额配置
export function ListRecharge() {
	return request({
		url: '/api/PCApplet/ListRecharge',
		method: 'GET',
	})
}

 // 创建充值订单
export function CreateRechargeOrders(data) {
	return request({
		url: '/api/PCApplet/CreateRechargeOrders',
		method: 'GET',
		data
	})
}

 // 充值拉起微信支付
export function GenerateRechargeOrder(data) {
	return request({
		url: '/api/PCApplet/GenerateRechargeOrder',
		method: 'GET',
		data
	})
}

 // 优惠券列表
export function Find(data) {
	return request({
		url: '/api/CouponPerson/Find',
		method: 'POST',
		data
	})
}

 // 余额流水列表
export function FindBalanceRecords(data) {
	return request({
		url: '/api/PCApplet/FindBalanceRecords',
		method: 'GET',
		data
	})
}

 // 订单优惠券使用校验
export function Check(data) {
	return request({
		url: '/api/CouponPerson/Check',
		method: 'POST',
		data
	})
}

// 根据订单编号获取订单支付详情
export function PaymentOrderDetails(data) {
	return request({
		url: '/api/PCApplet/PaymentOrderDetails',
		method: 'GET',
		data
	})
}

// 余额支付提交
export function PaySubmit(data) {
	return request({
		url: '/api/PCApplet/PaySubmit',
		method: 'GET',
		data
	})
}

// 订单退款
export function Add_Refund(data) {
	return request({
		url: '/api/PCApplet/Add_Refund',
		method: 'POST',
		data
	})
}

